import "babel-polyfill";
// 引入mockjs
const Mock = require('mockjs');
// 获取 mock.Random 对象
const Random = Mock.Random;

Mock.mock('/mockdata',(req, res) => {
	let data = {
        id: Random.natural(),
        commodityId: Random.guid(),
        commodityName: Random.ctitle(4),
        commodityTime: Random.date() + ' ' + Random.time()
    }
	return data;
});